package com.penghaisoft.microwms.common.base.model;


import com.penghaisoft.microwms.common.BaseEntity;
import com.penghaisoft.microwms.common.Constant;
import com.penghaisoft.microwms.common.util.CommonUtils;

import java.util.List;

/**
 * @author
 * 
 */
public class BaseResource extends BaseEntity {

    private String resourceId;//  资源主键ID
    private String parentId;//  父ID
    private String resourceName;//  资源名称
    private String href;//  菜单链接
    private String iconClass;//  iconClass
    private Integer sortNo;//  sortNo
    private String permission;//  权限标志
    private String resourceType;//  资源类型标志 1-菜单 2-按钮
    private String dicCode;
    private String dicType;
    private String dicName;

    private List<BaseResource> childResource;
    private String parentName;//  父资源名称

    @Override
    public void preInsert() {
        super.preInsert();
        setResourceId(CommonUtils.getUUID());
        setActiveFlag(Constant.CODE_ONE);
    }

    public String getDicName() {
        return dicName;
    }

    public void setDicName(String dicName) {
        this.dicName = dicName;
    }

    public void setDicCode(String dicCode) {
        this.dicCode = dicCode;
    }

    public void setDicType(String dicType) {
        this.dicType = dicType;
    }

    public String getDicCode() {
        return dicCode;
    }

    public String getDicType() {
        return dicType;
    }

    public String getResourceId() {
        return this.resourceId;
    }

    public void setResourceId(String value) {
        this.resourceId = value;
    }

    public String getParentId() {
        return this.parentId;
    }

    public void setParentId(String value) {
        this.parentId = value;
    }

    public String getResourceName() {
        return this.resourceName;
    }

    public void setResourceName(String value) {
        this.resourceName = value;
    }

    public String getHref() {
        return this.href;
    }

    public void setHref(String value) {
        this.href = value;
    }

    public String getIconClass() {
        return this.iconClass;
    }

    public void setIconClass(String value) {
        this.iconClass = value;
    }

    public Integer getSortNo() {
        return this.sortNo;
    }

    public void setSortNo(Integer value) {
        this.sortNo = value;
    }

    public String getPermission() {
        return this.permission;
    }

    public void setPermission(String value) {
        this.permission = value;
    }

    public String getResourceType() {
        return this.resourceType;
    }

    public void setResourceType(String value) {
        this.resourceType = value;
    }

    public List<BaseResource> getChildResource() {
        return childResource;
    }

    public void setChildResource(List<BaseResource> childResource) {
        this.childResource = childResource;
    }

    public String getParentName() {
        return parentName;
    }

    public void setParentName(String parentName) {
        this.parentName = parentName;
    }
}

